import request from '@/utils/request'

export function getUserList (params:any) {
    return request({
        url: 'user.user/list',
        method: 'GET',
        params
    })
}

/**
 * 获取用户详细
 */
export function getUserDetail  (params:{id:number|string}) {
    return request({
        url: `user.user/detail`,
        method: 'GET',
        params
    })
}



// 余额充值
export function setUserRechargeBalance(data:any) {
    return request({
        url: 'user.user/rechargeBalance',
        method: 'PUT',
        data
    })
}

/**
 * 设置会员分组
 */
export function updateUserGroup (data:any) {
    return request({
        url: `user.user/updateGroup`,
        method: 'PUT',
        data
    })
}

export function getUserOrderList (params:any) {
    return request({
        url: 'user.user/orderList',
        method: 'GET',
        params
    })
}